/*
 * Buzzer.h
 *
 *  Created on: 2021��5��10��
 *      Author: sunjipeng
 */

#ifndef BUZZER_H_
#define BUZZER_H_
#include "Arduino.h"

#ifndef BUZZER_PIN
#define BUZZER_PIN 14
#endif

class Buzzer {
private:
	unsigned int buzzer_pin = BUZZER_PIN;
	bool buzzing = false;
public:
	void init();
	void beep();
	void stop();
	bool isBuzzing();
};




#endif /* BUZZER_H_ */
